﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestListGenerator.Attributes
{
    /// <summary>
    /// An attribute that is used to associate a category with a test
    /// </summary>
    [AttributeUsage(AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
    public class TestCategoryAttribute : Attribute
    {
        /// <summary>
        /// The Category the test is associated with
        /// </summary>
        public string Category
        {
            get;
            set;
        }

        /// <summary>
        /// Associates the test with a category. These categories are then passed by the 
        /// TestListGenerator in order to produce Category Dependent Test Lists
        /// </summary>
        /// <param name="_category">The category to associate this test to</param>
        public TestCategoryAttribute(string _category)
        {
            this.Category = _category;
        }
    }
}
